.section .init
.global main

/* set stack pointer */
//lui sp, %hi(1024)
//addi sp, sp, %lo(1024)
/* 
addi x1,x0,3
addi x2,x0,4
bgeu x1,x2,geu_lable

lui x3,%hi(0x10000000)
addi x4,x0,0
addi x5,x0,255
test:
sw x4,0(x3)
sw x5,0(x3)
j test
be_lable:
j be_lable
ne_lable:
j ne_lable
lt_lable:
j lt_lable
ge_lable:
j ge_lable
ltu_lable:
j ltu_lable
geu_lable:
j geu_lable
*/
/* 
j start
j irq
start:
lui x1,%hi(0x10000000)
addi x2,x0,255
addi x3,x0,2000
loop:
addi x4,x0,0
loop1:
addi x4,x4,1
bne x3,x4,loop1
lw x4,0(x1)
xor x4,x4,x2
sw x4,0(x1)
j loop
irq:
j .
*/
lui sp,%hi(10240)
addi sp,sp,%lo(10240)
j main
